<html>

<head>
    <title>管理员后台</title>
    <link href="http://libs.baidu.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="/css/font-awesome.min.css">
    <script src="/js/jquery.min.js"></script>
    <script src="/js/popper.min.js"></script>
    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
    <script src="http://libs.baidu.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
    <style>
        .admin-left {
            height: 100%;
            background-color: #428bca;
            min-width: 120px !important;
        }

        .navbar {
            margin-bottom: 0;
        }

        .row {
            margin: 0 auto;
        }
    </style>
</head>

<body>
    <nav class="navbar navbar-default">
        <div class="container-fluid">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                    data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#">答疑平台</a>
            </div>

            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav navbar-right">
                    <li><a href="#">消息</a></li>
                    <li class="dropdown" style="display: none;">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
                            aria-expanded="false">Dropdown <span class="caret"></span></a>
                        <ul class="dropdown-menu">
                            <li><a href="#">Action</a></li>
                            <li><a href="#">Another action</a></li>
                            <li><a href="#">Something else here</a></li>
                            <li role="separator" class="divider"></li>
                            <li><a href="#">Separated link</a></li>
                        </ul>
                    </li>
                </ul>
            </div><!-- /.navbar-collapse -->
        </div><!-- /.container-fluid -->
    </nav>
    <div class="container-fluid">
        <div class="row">
            <div class="col-md-2 col-sm-2 col-lg-2 admin-left">
                <div>
                    <img src="/img/logo.jpg" alt="" class="img-circle center-block" style="width: 80px; height: 80px">
                    <span>
                        <div class="text-center">管理员</div>
                        <div class="text-center">（管理员）</div>
                    </span>
                </div>
                <div class="panel-group table-responsive classify" style="margin-top: 10px;" role="tablist">
                    <div class="panel panel-primary leftMenu">
                        <!-- 利用data-target指定要折叠的分组列表 -->
                        <div class="panel-heading" id="collapseListGroupHeading1" data-toggle="collapse"
                            data-target="#collapseListGroup1" role="tab">
                            <h4 class="panel-title">
                                常见问题库
                            </h4>
                        </div>
                    </div>
                    <!--panel end-->
                    <div class="panel panel-primary leftMenu">
                        <!-- 利用data-target指定要折叠的分组列表 -->
                        <div class="panel-heading" id="collapseListGroupHeading1" data-toggle="collapse"
                            data-target="#collapseListGroup1" role="tab">
                            <h4 class="panel-title">
                                学生管理
                                <span class="glyphicon glyphicon-chevron-down right"></span>
                            </h4>
                        </div>
                        <div id="collapseListGroup1" class="panel-collapse collapse" role="tabpanel"
                            aria-labelledby="collapseListGroupHeading2">
                            <ul class="list-group">
                                <li class="list-group-item">
                                    <a href="">全部班级</a>
                                </li>
                                <li class="list-group-item">
                                    <a href="">1821801</a>
                                </li>
                                <li class="list-group-item">
                                    <a href="">1821802</a>
                                </li>
                                <li class="list-group-item">
                                    <a href="">1821803</a>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <div class="panel panel-primary leftMenu">
                        <!-- 利用data-target指定要折叠的分组列表 -->
                        <div class="panel-heading" id="collapseListGroupHeading1" data-toggle="collapse"
                            data-target="#collapseListGroup2" role="tab">
                            <h4 class="panel-title">
                                教师管理
                                <span class="glyphicon glyphicon-chevron-down right"></span>
                            </h4>
                        </div>
                        <div id="collapseListGroup2" class="panel-collapse collapse" role="tabpanel"
                            aria-labelledby="collapseListGroupHeading2">
                            <ul class="list-group">
                                <li class="list-group-item">
                                    <a href="">全部教师</a>
                                </li>
                                <li class="list-group-item">
                                    <a href="">语文</a>
                                </li>
                                <li class="list-group-item">
                                    <a href="">数学</a>
                                </li>
                                <li class="list-group-item">
                                    <a href="">英语</a>
                                </li>
                                <li class="list-group-item">
                                    <a href="">编程</a>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <!--panel end-->
                    <div class="panel panel-primary leftMenu">
                        <div class="panel-heading" id="collapseListGroupHeading2" data-toggle="collapse"
                            data-target="#collapseListGroup3" role="tab">
                            <h4 class="panel-title">
                                人工答疑
                                <span class="glyphicon glyphicon-chevron-down right"></span>
                            </h4>
                        </div>
                        <div id="collapseListGroup3" class="panel-collapse collapse" role="tabpanel"
                            aria-labelledby="collapseListGroupHeading3">
                            <ul class="list-group">
                                <li class="list-group-item">
                                    <a href="">感悟</a>
                                </li>
                                <li class="list-group-item">
                                    <a href="">游记</a>
                                </li>
                                <li class="list-group-item">
                                    <a href="">日记</a>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
            <div style="margin-top: 10px; padding-left:5px;">
                <ol class="breadcrumb">
                    <li><a href="#" class="active">常见问题库</a></li>
                </ol>
            </div>

            <div class="col-md-10 col-sm-10 col-lg-10 admin-right">
                <div class="pull-left"><label for="object">科目：</label>
                    <select id="object" name="object" onchange="change()">
                        <option value="1">语文</option>
                        <option value="2">数学</option>
                        <option value="3">英语</option>
                        <option value="4">编程</option>
                    </select>
                </div>
                <form class="form-inline pull-right">
                    <div class="form-group">
                        <label for="exampleInputName2"></label>
                        <input type="text" class="form-control" id="exampleInputName2" placeholder="问题">
                    </div>
                    <button type="submit" class="btn btn-default">查找</button>
                </form>
                <table class="table table-hover" id="question_info_list">
                    <tr>
                        <th>序号</th>
                        <th>标题</th>
                        <th>提问者</th>
                        <th>科目</th>
                        <th>创建时间</th>
                        <th>操作</th>
                    </tr>
                    <tr>
                        <td>1</td>
                        <td>第一个语文问题</td>
                        <td>蓝旺</td>
                        <td>语文</td>
                        <td>2020年10月18日08:39:50</td>
                        <td><a href="#">加精</a><a href="#"> 删除</a></td>
                    </tr>
                    <tr>
                        <td>1</td>
                        <td>第一个语文问题</td>
                        <td>蓝旺</td>
                        <td>语文</td>
                        <td>2020年10月18日08:39:50</td>
                        <td><a href="#">加精</a><a href="#"> 删除</a></td>
                    </tr>
                    <tr>
                        <td>1</td>
                        <td>第一个语文问题</td>
                        <td>蓝旺</td>
                        <td>语文</td>
                        <td>2020年10月18日08:39:50</td>
                        <td><a href="#">加精</a><a href="#"> 删除</a></td>
                    </tr>
                    <tr>
                        <td>1</td>
                        <td>第一个语文问题</td>
                        <td>蓝旺</td>
                        <td>语文</td>
                        <td>2020年10月18日08:39:50</td>
                        <td><a href="#">加精</a><a href="#"> 删除</a></td>
                    </tr>

                </table>
                <nav aria-label="Page navigation">
                    <ul class="pagination pull-right">
                        <li>
                            <a href="#" aria-label="Previous">
                                <span aria-hidden="true">&laquo;</span>
                            </a>
                        </li>
                        <li><a href="#">1</a></li>
                        <li><a href="#">2</a></li>
                        <li><a href="#">3</a></li>
                        <li><a href="#">4</a></li>
                        <li><a href="#">5</a></li>
                        <li>
                            <a href="#" aria-label="Next">
                                <span aria-hidden="true">&raquo;</span>
                            </a>
                        </li>
                    </ul>
                </nav>
            </div>
        </div>


    </div>

    <script>
        $(function () {
            $(".panel-heading").click(function (e) {
                /*切换折叠指示图标*/
                $(this).find("span").toggleClass("glyphicon-chevron-down");
                $(this).find("span").toggleClass("glyphicon-chevron-up");
            });
        });
        function change() {
            var vs = $('#object  option:selected').val();  
            console.log(vs)
            $.ajax({
                url:"",
                method:"get",
                async:true,
                data:{"object": vs},
                success:function(){

                }
            })
        }
    </script>
</body>

</html>